package com.ferry.transport.netty.consumer;

/**
 * Created by daiyong
 */
public enum FailStrategy {
	FAIL_FAST,  // 快速失败
	FAIL_OVER,  // 失败重试
	FAIL_SAFE;  // 失败安全

	public static FailStrategy parse(String name) {
		for (FailStrategy s : values()) {
			if (s.name().equalsIgnoreCase(name)) {
				return s;
			}
		}
		return null;
	}
}
